fix subselecting in time condition, cleanup of cfg
cleanup