more code for testing

not finished, but records of more attempts at testing