adds factory export and arranges files to support it