add gd bcond and subpackage