use exec instead of spawn