better passing of options