small bug fixes, and new compile