prep and some tests