prepare to integrate with spray