add code and config