Config load logic