paper out handling (not yet working)

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>