first try to support spies, need further investigation