update travis
replace module "extend" with my own function