regenerate from insde process instead of using the shell execution to monitor changes