added support for different types of RAW files