minimization support

Signed-off-by: Zeljko <zeljko@zwr.fi>