auto generate Self-App