added code to help with smarter weakening in scwala