filehandler static methods fix