fixed bugs in filter api
turned on api responses for errors