moved data pull to tasks