added protectedapp