moved nogil from method definition to extern definition