public getLastExecutableStatement so it can be used in ide