add method to clear reflection cache