core code initial commit