cleanup, add get /:type