consolidate front controllers, read config from environment