improve cross platform branch