[mobile] more general save function