throwing an error when destination is not safe