dont use primary everywhere
relevant logging
jshinted