implemented raw file type handling