some refactoring
remove foundation
remove unneeded packages