test routine works but freezes chrome