prepare library and sample for release