file class extended and fixed

Signed-off-by: pussbb <pussbb@gmail.com>