fixing symbol search, TODO: fix bug with subroutine finding