[+] library base implementation