add input directive