removed leftover console debugging statement. removed usage of .end() since it was Knox specific