added main library setup