Fix global locations and add converter

Signed-off-by: Co0sh <coosheck@gmail.com>