simple detection of code location