fixed bugs. test_svc.py seems to work!