added octal support