added methods that work with files attributes