added rough draft of setup code... -sai