require httparty for prod and fix other bug