updated to work with LogInMotion