add "rest type" workaround