see #131, added pit for redirect