improved gesture agent