prototypes for shadowswap