first draft of map code