adding routes, $get, and $spawn