added a little multi problem type support