custom method to print yaml