remove old file and add new libaray to server