[fx] wrapper code in separate files