pushed up init code for producing the appropriate folders