move to server
write down proposed checks
do two checks and return json