initial commit of essential code