minor fixes & refactoring
func class File - update
authorization - fix