use usual functions (without _P) for write