implement attach

Signed-off-by: James Rubingh <james@wrive.com>
fix get bug

Signed-off-by: James Rubingh <james@wrive.com>