updated file parsing code to use bsdf