adds conditional compilation of states