moved mapObject to lib