run local stuff first