Directed

added some basic directed support