update to appconstants it can now be used as a gem