update scratch, add server example