cleanup api
explicit file mode