initial version running on Mac