work on adding history service
many bug fixes and many open work