various fixed. probably last commit, classes will be incorporated into the apigw project and development will continue there.