[upd] Basic lib implementation