set app instance vars on init