added pattern matches and many coordinates import