prepare for native functions