Make it unsafe, add the start of a safe fn

not sure this is right yet