made it possible to specify LOCAL as env variable