use sudo on travis. fixed minor bugs.