sp: fix bug, fish uses return to specify whether a function failed or not