moved create dirs to separate plugin file