Directory setup

settings vars and testing checking for null function