Revert "remove setmap"

This reverts commit 91d841be11ddf626e40af9d361a966df5fbc617d.