working on properly typing params and converting them for the call to the JS proxy