added cross compare and misc stuff