added a stand alone test and tested the whole thing itself. it works.