compacted path and better error handling
added tests to travis CI