cleaned up generator app with magic file