updated lib with basic functions