fixed issue 30 #30 , support mac startup