primitive buy mechanismus with files