some formatting and security