added pins as resources and configured header(partial)