change map loading mechanism to use a command