These should be in mapsharing.cpp and declared as extern in mapsharing.h