added ability to pass extra params