add opening and libs