finished server side constraint checks
cleanup