fixed library stuff, is working?