fixed minor bug with packagename parameter