added coords verification, should merge to master (actually should've merged in the previous commit but w/e =))