fix wrong filesystem method calls