creating response class
fix for public and private stuff