exec: minor refactoring