added registration stuff