added creating neccessary directories