adding exception for invalid method @ winfunc