fixing Travis errors and warnings