added testing code... probably will separate into another repo soon