added conditional for local development