fixed redirect, removed debug