change spawn to exec