add back register method and add polyfill method