add code and resources