master #1 package structure & base functions