refactor to ${commands[exec]:h} as mentioned in PR