add constants and base dir to work across environments