couple of fixes, plus added bin\refresh for quickly testing changes