implement toExecutable