nicer build and version functions
fix unit tests