dispense with need for direction flag
refactor hooks and add website syncing