move libraries to /lib
add basic logging