function changed to get package name from project