remote automatic response end functionality and fix resolving partial template paths