basic location code. map does not update

Maybe split to another file?