changed generation of api request
fixing encoders