mistakes fixed and wmsService interface improved