remove dead code and configuration