* support dir tpages * fix warnings and bad return * one more try * revive the offline test script * fix this null bug