added command support for mac