basic worker code. can use this to get data in the background