initial commit of core code