put room task into a separate file