set up options before data