some block ram cleanup