removed file parsing from resource