THIS IS FOR EXTERNAL TEMPLATE BASED APPLICATIONS