fixed binary and octal inputs; quick and dirty; works great