hack together redgreen api use