first version with mkdir working