add generate scan method
find package name of current directory