fixed several bugs in possible subroutine finder