controller path detection