debug handwrite init