ported filestops API to mongoose