moved secret data dir to variables to correct ordering.