first try at logic for keywords