clean swsea demo code