exploit move syntax to simplify resource management