fixed use of list from config
fixed return value
simplification