[add] basic of save functiont (doesnt work now)