get object sizes from global environment