fixed bug in sites/filtering. improved memory management in calcgetter