move functions used only be the server to the lib folder in server since kernel driver won't use them