small bug fixes, working on 'crates' example