take opts into request