move some items to cfg; check for scale histos
move some items to cfg
add length check