added basic testing and processign routines