add modes for mac and linux