added function for better log/verbose support