trying to fix rewrite base again