fixed bug and works on phase2 spec
Revert back to making files