small changes to exec