core app code done v3