debugging add functionality