fix: should return 0 on success to stat function.
fix: function names should be lower-camelcase.
fix: should add namespace.