added libs and compiled versions of the functions