adapt for new version tinywings