refactoring and adding other_sources attribute to package config