fix perl warning for hash slice
Fix node_types warning by fixing global variables
fix filename by excluding query parameter from the url