inject errors into container
refactor options element