working on adding signature checking