fixed switching between production and test files