rought implementation of finding declaration
very rough implementation of inserting package name