init config and routes