modular functions instead of one big main. Can query tile and zoom level as well