added some library stuff