portablize this test