add asserts to make sure all public code on mac side runs n main ui thread