removed main from library