adding better debugging / printing functions