Adds ibrary support for server, bugfixes