fix folder recursive creation, and added debugging message into verbose mode