location add and search

Signed-off-by: Thejasvi Bhat <thejasvi@smashed.in>