using foreign.safe instead of foreign
v1.0.1