add control functions for mac