better flatpage support