create folder on mod create
fix for php5.5 yield function