added commands and debug for speed