added template parsing and google API's