safe loading and some formatting