initial implementation of SWF, just a framework to start with all servide calls