preliminary work on signature detection