registration and call on open