working on register command, also fixed oversight related to issue #14