1. fix function call on windows that hasn't been defined yet