added registry registration, added logging