move from_unix and to_unix to utils file