implemented activity infrastructure