load config and do basic checks