updated libs and fixed bugs