added logging capabilities to debug temporarily folder creation