add functions for testing access