check whether directoy exists
added identical but different name function
fixed handling list of args