works ok on ios and mac