fixed references in lib