move config to shared dir and add sanity checking to config load