updates to MethodGen