added file object to apx instance
removed mode assertion on file test which should finally fix the build