added travis
added better global check