cleaning up code for flags, should work now
merge conflicts
Merge branch 'master' of https://github.com/jming/spring2013