fixed example for new api
tweaks to properly fetch type and status