helper for passing raw data in