added mac os x support