remove debugs and add redirect