check if packages is int or not. addresses #55
sorting existing hack on groups, addresses #54
minor tweaks to map