fix proxy function to take additional arguments into account