move map logic to server
remove unused libs