move various API operation options to an options dict (hai Javascript!)