rewrite new conf generator; rewrite oauth; smart redirect helpers