parse safely