added SESC, stills needs minor bug fixes