working library and scanning