added local file loading