adding custom header functionality