access() improvements

Description in the commits. Thanks!