disk swap prototype