fix return value of Execute and add main