add cwd option
fix delay