fd: initial code