added api for activity
fixes