add mailer (not tested)
base for urlrewrite
remove unwanted print_r
add base tag, correct links for urlrewriting