whitespace cleanup
first take at permalink support