type fix for new GET/POST apis