Remove direct file access way