using access hooks better
code style
Merge pull request #3 from willtp87/7.x

7.x