don't include null in normal API responses
apply max values for resources
fix bug with multiple instances