separated init entity from create entity, create entity returns an id instead of actual entity now