adding code and config