save net in .eg and load it for use