added -f --fork option to generator