added better routing and config error handling, fixed rig, fixed static config