used patched version of autopages