added creating of directories