added basic activity recognition