added code for getCurrentProfileParams