remove puts
create dir on the fly