added authentication and basic structure based on activityOverlord