directories and physics functions!