first version with files