parse directions
parse directions properly, print them for test