use __DIR__ rather than dirname(__FILE__)
set up travis ci