fix register handler after adding caching