finished register

@angkosek 
@jkeslin