Improved command, fixed error with config imports