implementes Mac OSX loop executor