prot:
write window
write frame