added security check for loading datataps