better initialization on application controller