added gzip support to package handler