some small bug fixes, get static return objects to "work", though currently, they leak.