added basic registration