added classnames as an option