added app reload logic with hidden endpoint