safer code io