fix tons of bugs, and fix for new github page rule