add geometry checker. ready to be merged