adding in raw file support
fixed raw file support