major refactoring done
initial webservice api implementation