update -remove unused method, fix config