re-wire app to only use flag package instead of ENV