adding some code that tests access to user's resources