#64 put router and config into lib folders