fix exceptions thrown while searching for refs
added builded script