moved almost all code into srs