some basic saving, shitty but works