config options can now be passed into creation on element