method redirect, fixes #7