the first shaky effort at refining that crap i did