add pointer to commons.
avoid using registry, clean-up