latest code for smartrack