adding code to load maps