fix option passing