now able to parse data frames passed in