add some codes create objects for mapping. (very handy during troublshooting)