* migrate config to figment * support env variables * add better error messages * fix tests * refactor