make register parser thread safe