collapse config into application::__construct()