added apps library code