adding registration stuff