first version of coordinate extractor working