added a main to commonlibs