improve entity creation and retrieval
add register command