starting a rewrite, still not functional…
no need of rewriting, suits my needs now