stat object can only be accessed if allocated

resolve issue #26
policy for filesystem #23