portable function to pass bill data to pscl