made paths relative

also, changed activity function