update travis
fixed script bugs