added ignore command
increased buffer size and removed unnecessary casting
debug output