added support for accessing last page directly, minor fix for tails