implemented retrieve target id. changed spec file