doc for new cmd
add a test for compiler director