replaced exec with pcntl_exec