fd basic lib